const Mock = require('mockjs')
// 调用的tabList标签mock
Mock.mock('http://localhost:4000/menus', 'get', function (options) {
  // console.log(options)
  return {
    menus: [
      {
        id: 103,
        authName: '数据总览',
        path: 'null',
        children: [
          {
            id: 145,
            authName: '考核人数统计',
            path: 'Welcome',
            children: []
          }
        ]
      },
      {
        id: 101,
        authName: '预约管理',
        path: null,
        children: [
          {
            id: 101,
            authName: '个人预约',
            path: 'fraction',
            children: []
          },
          {
            id: 105,
            authName: '团体预约',
            path: 'groupBooking',
            children: []
          }
        ]
      },
      {
        id: 105,
        authName: '二维码管理',
        path: null,
        children: [
          {
            id: 145,
            authName: '隐患点管理',
            path: 'danger',
            children: []
          }
        ]
      }
    ]
  }
})

// 测试人数据
// Mock.mock('http://localhost:4000/demo', 'get', function (options) {
//   console.log(options)
//   return {
//     demo :[
//       {
//         id:1,
//         designation:'防范邪教',
//         unit:'反邪办',
//         username:'admin' 
//       },
//       {
//        id:2,
//        designation:['消防控制室','童装厂','出租屋'],
//        unit:'消防救援大队',
//        username:'admin' 
//       },
//       {
//        id:3,
//        designation:['空气扬尘治理','河道治理'],
//        unit:'生态治理',
//        username:'admin' 
//       }],
//         meta: { status: 200, message: '获取数据成功！' }
//   }
// })
